home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / rc2.z / rc2
Encoding:
Text File  |  1998-10-20  |  4.1 KB  |  133 lines

  1.  
  2.  
  3.  
  4. rrrrcccc2222((((1111MMMM))))                                                                rrrrcccc2222((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      rc2 - run commands required for multi-user environment
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////eeeettttcccc////rrrrcccc2222
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      ////eeeettttcccc////rrrrcccc2222 is executed via an entry in /_e_t_c/_i_n_i_t_t_a_b and is responsible for
  16.      the initializations that bring the system to a ready-to-use state,
  17.      traditionally state 2, which is called the "multi-user" state.
  18.  
  19.      /_e_t_c/_r_c_2 runs files beginning with SSSS in /_e_t_c/_r_c_2._d.  These files are
  20.      executed by /_b_i_n/_s_h in ascii sort-sequence order (see FFFFIIIILLLLEEEESSSS below for
  21.      more information).
  22.  
  23.      Each of these files may also check the state of the corresponding
  24.      _c_h_k_c_o_n_f_i_g flag for that function.  If the state is oooonnnn, the script starts
  25.      that function; if the state is ooooffffffff, it does not start that function.
  26.      (See _c_h_k_c_o_n_f_i_g(1M)).
  27.  
  28.      The functions performed by the /_e_t_c/_r_c_2 command and associated /_e_t_c/_r_c_2._d
  29.      files include:
  30.  
  31.           Setting and exporting the TIMEZONE variable.
  32.  
  33.           Setting-up and mounting the user (/_u_s_r) and other filesystem(s).
  34.  
  35.           Cleaning up (remaking) the /_t_m_p directory.
  36.  
  37.           Initializing the network interfaces, mounting network filesystems,
  38.           and starting the appropriate daemon processes.
  39.  
  40.           Starting the _c_r_o_n daemon by executing /_e_t_c/_c_r_o_n.
  41.  
  42.           Cleaning up (deleting) uucp locks status, and temporary files in the
  43.           /_v_a_r/_s_p_o_o_l/_u_u_c_p directory.
  44.  
  45.      Other functions can be added, as required, to support the addition of
  46.      hardware and software features.
  47.  
  48. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  49.      The following are simplified examples of the files found in /_e_t_c/_r_c_2._d.
  50.      The filenames are prefixed by an SSSS and a number indicating the execution
  51.      order of the files.
  52.  
  53.      filesystems
  54.           # set up and mount filesystems
  55.           cd /
  56.           fsck -m -c -y
  57.           /etc/mount -at efs
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. rrrrcccc2222((((1111MMMM))))                                                                rrrrcccc2222((((1111MMMM))))
  71.  
  72.  
  73.  
  74.      rmtmpfiles
  75.           # clean up /tmp
  76.           rm -rf /tmp
  77.           mkdir /tmp
  78.           chmod 777 /tmp
  79.           chgrp sys /tmp
  80.           chown sys /tmp
  81.  
  82.      uucp
  83.           # clean-up uucp locks, status, and temporary files
  84.           rm -rf /var/spool/locks/*
  85.  
  86.      The file /_e_t_c/_T_I_M_E_Z_O_N_E is included early in /_e_t_c/_r_c_2, thus establishing
  87.      the default time zone for all commands that follow.
  88.  
  89.      See _r_c_0(1M) for the system shutdown procedure.
  90.  
  91. FFFFIIIILLLLEEEESSSS
  92.      Files in /_e_t_c/_r_c_2._d must begin with an SSSS or a KKKK followed by a number and
  93.      the rest of the filename.  Upon entering run level 2, files beginning
  94.      with SSSS are executed with an argument of ssssttttaaaarrrrtttt ;;;; if entering run level 2
  95.      from some state other than single-user mode (ie: from other than run
  96.      level 1 or s), files beginning with KKKK, are first executed with an
  97.      argument of ssssttttoooopppp.  Files in /_e_t_c/_r_c_2._d are typically symbolic links to
  98.      files in /_e_t_c/_i_n_i_t._d.  Files beginning with other characters are ignored.
  99.  
  100. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  101.      rc0(1M), shutdown(1M).
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.